<%@ page language="java" import="java.util.*"
	contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<script type="text/javascript" 
	src="/QueenRestaurantWeb/resources/js/jquery-1.10.1.js"></script>
	
<script type="text/javascript">
$(document).ready(function(){
  $("#button1").click(function(){
  	alert("click");
  });
  
  $("#create_restaurant").click(function(){
  	location.href= "${pageContext.request.contextPath}/restaurant/register";
  	});
});

</script>
<title>皇后餐厅首页</title>

</head>

<body> 
	Welcome 
	<br>
	<form action="<c:url value="/user/register"/>">
		<input type="submit" value="用户注册" name="userRegister" />
	</form>
	<form method="post" action="<c:url value="/restaurant/login"/>">
	<table>
		<tr>
			<td>餐厅名称：</td>
			<td><input name="restaurantName" type="text"/></td>
		</tr>
		<tr>
			<td>密码：</td>
			<td><input name="restaurantPassword" type="password"/></td>
		</tr>
		<tr>
			<td colspan="2" align="center">
				<input type="submit" value="餐厅登陆">
				<input id="create_restaurant" type="button" value="餐厅注册">
			</td>
		</tr>
	</table>
	</form>
</body>
</html>
